<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>介绍 | vuepress-theme-reco</title>
    <meta name="generator" content="VuePress 1.7.1">
    <link rel="icon" href="/favicon.ico">
    <link rel="manifest" href="/manifest.json">
    <link rel="apple-touch-icon" href="/icon_vuepress_reco.png">
    <link rel="mask-icon" href="/icon_vuepress_reco.svg" color="#42b983">
    <meta name="description" content="一款简洁而优雅的 vuepress 博客 & 文档 主题。">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    <meta name="author" content="reco_luan">
    <meta name="keywords" content="vuepress,reco,reco_luan,vuepress-reco,vuepress-theme-reco,theme,blog,主题">
    <meta name="theme-color" content="#42b983">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="msapplication-TileImage" content="/icon_vuepress_reco.png">
    <meta name="msapplication-TileColor" content="#000000">
    
    <link rel="preload" href="/assets/css/0.styles.375ac6ca.css" as="style"><link rel="preload" href="/assets/js/app.ee497890.js" as="script"><link rel="preload" href="/assets/js/6.2c23b45d.js" as="script"><link rel="preload" href="/assets/js/1.0b8c7b71.js" as="script"><link rel="preload" href="/assets/js/110.753d21b3.js" as="script"><link rel="preload" href="/assets/js/40.13ddb158.js" as="script"><link rel="preload" href="/assets/js/20.1ca19584.js" as="script"><link rel="prefetch" href="/assets/js/10.be926bee.js"><link rel="prefetch" href="/assets/js/100.e02486fa.js"><link rel="prefetch" href="/assets/js/101.3da7b6a6.js"><link rel="prefetch" href="/assets/js/102.998c9f5d.js"><link rel="prefetch" href="/assets/js/103.dbfb30aa.js"><link rel="prefetch" href="/assets/js/104.0702d3a0.js"><link rel="prefetch" href="/assets/js/105.2dfbb36f.js"><link rel="prefetch" href="/assets/js/106.4e18c125.js"><link rel="prefetch" href="/assets/js/107.e3c7bfac.js"><link rel="prefetch" href="/assets/js/108.3a82a647.js"><link rel="prefetch" href="/assets/js/109.06725f12.js"><link rel="prefetch" href="/assets/js/11.cf684a54.js"><link rel="prefetch" href="/assets/js/111.23d1168a.js"><link rel="prefetch" href="/assets/js/112.4d830ac4.js"><link rel="prefetch" href="/assets/js/113.99cd1eee.js"><link rel="prefetch" href="/assets/js/114.59b2099d.js"><link rel="prefetch" href="/assets/js/115.ea7ac84a.js"><link rel="prefetch" href="/assets/js/116.26c98203.js"><link rel="prefetch" href="/assets/js/12.4d148981.js"><link rel="prefetch" href="/assets/js/13.a0f666c5.js"><link rel="prefetch" href="/assets/js/14.bdbab8ec.js"><link rel="prefetch" href="/assets/js/15.f7c3de28.js"><link rel="prefetch" href="/assets/js/16.c0bb15ed.js"><link rel="prefetch" href="/assets/js/17.59825a83.js"><link rel="prefetch" href="/assets/js/18.7f6e5ed6.js"><link rel="prefetch" href="/assets/js/19.816d26de.js"><link rel="prefetch" href="/assets/js/2.3b4d4534.js"><link rel="prefetch" href="/assets/js/21.e6d32c6e.js"><link rel="prefetch" href="/assets/js/22.c4982202.js"><link rel="prefetch" href="/assets/js/23.cac4da43.js"><link rel="prefetch" href="/assets/js/24.8f87f52f.js"><link rel="prefetch" href="/assets/js/25.b3ed92b1.js"><link rel="prefetch" href="/assets/js/26.74889847.js"><link rel="prefetch" href="/assets/js/27.077e98bc.js"><link rel="prefetch" href="/assets/js/28.8c75eca9.js"><link rel="prefetch" href="/assets/js/29.4d2c1ec6.js"><link rel="prefetch" href="/assets/js/30.550aec28.js"><link rel="prefetch" href="/assets/js/31.8d90df0c.js"><link rel="prefetch" href="/assets/js/32.0300fceb.js"><link rel="prefetch" href="/assets/js/33.da25ab20.js"><link rel="prefetch" href="/assets/js/34.6d515f54.js"><link rel="prefetch" href="/assets/js/35.eea26708.js"><link rel="prefetch" href="/assets/js/36.199f87de.js"><link rel="prefetch" href="/assets/js/37.214414e1.js"><link rel="prefetch" href="/assets/js/38.80d1f8ef.js"><link rel="prefetch" href="/assets/js/39.10dc3440.js"><link rel="prefetch" href="/assets/js/41.f505b5f9.js"><link rel="prefetch" href="/assets/js/42.8adb293b.js"><link rel="prefetch" href="/assets/js/43.48ed241c.js"><link rel="prefetch" href="/assets/js/44.a2f33893.js"><link rel="prefetch" href="/assets/js/45.fbd4cf01.js"><link rel="prefetch" href="/assets/js/46.50ccafe9.js"><link rel="prefetch" href="/assets/js/47.635a6220.js"><link rel="prefetch" href="/assets/js/48.54e67ea0.js"><link rel="prefetch" href="/assets/js/49.fe6d77bc.js"><link rel="prefetch" href="/assets/js/50.44ac8751.js"><link rel="prefetch" href="/assets/js/51.72baffbd.js"><link rel="prefetch" href="/assets/js/52.289c6303.js"><link rel="prefetch" href="/assets/js/53.d907701e.js"><link rel="prefetch" href="/assets/js/54.f503afad.js"><link rel="prefetch" href="/assets/js/55.2fca0a82.js"><link rel="prefetch" href="/assets/js/56.bcfaacba.js"><link rel="prefetch" href="/assets/js/57.ce2055d6.js"><link rel="prefetch" href="/assets/js/58.c67ceba4.js"><link rel="prefetch" href="/assets/js/59.7677da04.js"><link rel="prefetch" href="/assets/js/60.60cb47ea.js"><link rel="prefetch" href="/assets/js/61.5f863417.js"><link rel="prefetch" href="/assets/js/62.931ad247.js"><link rel="prefetch" href="/assets/js/63.5271b168.js"><link rel="prefetch" href="/assets/js/64.cba02a83.js"><link rel="prefetch" href="/assets/js/65.b996490b.js"><link rel="prefetch" href="/assets/js/66.ddbf05c1.js"><link rel="prefetch" href="/assets/js/67.c5050aa0.js"><link rel="prefetch" href="/assets/js/68.5fc03618.js"><link rel="prefetch" href="/assets/js/69.7f8b4ccd.js"><link rel="prefetch" href="/assets/js/7.b8d8a87c.js"><link rel="prefetch" href="/assets/js/70.c35e5e37.js"><link rel="prefetch" href="/assets/js/71.2590ca68.js"><link rel="prefetch" href="/assets/js/72.1315c6e8.js"><link rel="prefetch" href="/assets/js/73.9300a291.js"><link rel="prefetch" href="/assets/js/74.1fa05d01.js"><link rel="prefetch" href="/assets/js/75.dd1b2668.js"><link rel="prefetch" href="/assets/js/76.6284fc11.js"><link rel="prefetch" href="/assets/js/77.b7486c48.js"><link rel="prefetch" href="/assets/js/78.bc9869f1.js"><link rel="prefetch" href="/assets/js/79.62b20acc.js"><link rel="prefetch" href="/assets/js/8.f55c941b.js"><link rel="prefetch" href="/assets/js/80.a77eae06.js"><link rel="prefetch" href="/assets/js/81.44a3414f.js"><link rel="prefetch" href="/assets/js/82.eeb6afdd.js"><link rel="prefetch" href="/assets/js/83.af5ac4c8.js"><link rel="prefetch" href="/assets/js/84.6385f33b.js"><link rel="prefetch" href="/assets/js/85.3a290e97.js"><link rel="prefetch" href="/assets/js/86.67492d49.js"><link rel="prefetch" href="/assets/js/87.555401fe.js"><link rel="prefetch" href="/assets/js/88.c621fb8f.js"><link rel="prefetch" href="/assets/js/89.24bdc4b0.js"><link rel="prefetch" href="/assets/js/9.fb059d07.js"><link rel="prefetch" href="/assets/js/90.40012884.js"><link rel="prefetch" href="/assets/js/91.fc2a6af5.js"><link rel="prefetch" href="/assets/js/92.efc20c19.js"><link rel="prefetch" href="/assets/js/93.cb770b2d.js"><link rel="prefetch" href="/assets/js/94.2f84676c.js"><link rel="prefetch" href="/assets/js/95.3e7f8817.js"><link rel="prefetch" href="/assets/js/96.918b5365.js"><link rel="prefetch" href="/assets/js/97.a9cd312c.js"><link rel="prefetch" href="/assets/js/98.c6bf975a.js"><link rel="prefetch" href="/assets/js/99.47508085.js"><link rel="prefetch" href="/assets/js/vendors~docsearch.3b7e11a5.js"><link rel="prefetch" href="/assets/js/vendors~flowchart.c31b7827.js">
    <link rel="stylesheet" href="/assets/css/0.styles.375ac6ca.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container" data-v-1156296a><div data-v-1156296a><div id="loader-wrapper" class="loading-wrapper" data-v-d48f4d20 data-v-1156296a data-v-1156296a><div class="loader-main" data-v-d48f4d20><div data-v-d48f4d20></div><div data-v-d48f4d20></div><div data-v-d48f4d20></div><div data-v-d48f4d20></div></div> <!----> <!----></div> <div class="password-shadow password-wrapper-out" style="display:none;" data-v-4e82dffc data-v-1156296a data-v-1156296a><h3 class="title" data-v-4e82dffc data-v-4e82dffc>vuepress-theme-reco</h3> <p class="description" data-v-4e82dffc data-v-4e82dffc>一款简洁而优雅的 vuepress 博客 &amp; 文档 主题。</p> <label id="box" class="inputBox" data-v-4e82dffc data-v-4e82dffc><input type="password" value="" data-v-4e82dffc> <span data-v-4e82dffc>Konck! Knock!</span> <button data-v-4e82dffc>OK</button></label> <div class="footer" data-v-4e82dffc data-v-4e82dffc><span data-v-4e82dffc><i class="iconfont reco-theme" data-v-4e82dffc></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-4e82dffc>vuePress-theme-reco</a></span> <span data-v-4e82dffc><i class="iconfont reco-copyright" data-v-4e82dffc></i> <a data-v-4e82dffc><span data-v-4e82dffc>reco_luan</span>
            
          <span data-v-4e82dffc>2017 - </span>
          2021
        </a></span></div></div> <div class="hide" data-v-1156296a><header class="navbar" data-v-1156296a><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">vuepress-theme-reco</span></a> <div class="links"><div class="color-picker"><a class="color-button"><i class="iconfont reco-color"></i></a> <div class="color-picker-menu" style="display:none;"><div class="mode-options"><h4 class="title">Choose mode</h4> <ul class="color-mode-options"><li class="dark">dark</li><li class="auto active">auto</li><li class="light">light</li></ul></div></div></div> <div class="search-box"><i class="iconfont reco-search"></i> <input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-api"></i>
      文档
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><h4>主题</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/views/2.x/" class="nav-link"><i class="undefined"></i>
  2.x(alpha)
</a></li><li class="dropdown-subitem"><a href="/views/1.x/" class="nav-link"><i class="undefined"></i>
  1.x
</a></li><li class="dropdown-subitem"><a href="/views/0.x/" class="nav-link"><i class="undefined"></i>
  0.x
</a></li></ul></li><li class="dropdown-item"><h4>插件</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/views/plugins/index.html" class="nav-link"><i class="undefined"></i>
  官方插件
</a></li><li class="dropdown-subitem"><a href="/views/other/recommend.html" class="nav-link"><i class="undefined"></i>
  插件广场
</a></li></ul></li></ul></div></div><div class="nav-item"><a href="/views/other/question.html" class="nav-link"><i class="iconfont reco-faq"></i>
  常见问题
</a></div><div class="nav-item"><a href="/categories/blog/" class="nav-link"><i class="iconfont reco-blog"></i>
  博客
</a></div><div class="nav-item"><a href="/views/other/theme-example.html" class="nav-link"><i class="iconfont reco-category"></i>
  案例
</a></div><div class="nav-item"><a href="https://vuepress-theme-reco.recoluan.com/rss.xml" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-rss"></i>
  订阅
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="/views/other/messageBoard.html" class="nav-link"><i class="iconfont reco-suggestion"></i>
  留言板
</a></div><div class="nav-item"><a href="https://github.com/vuepress-reco/vuepress-theme-reco" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-github"></i>
  GitHub
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="undefined"></i>
      language
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/views/plugins/" aria-current="page" class="nav-link router-link-exact-active router-link-active"><i class="undefined"></i>
  简体中文
</a></li><li class="dropdown-item"><!----> <a href="/en/views/plugins/" class="nav-link"><i class="undefined"></i>
  English
</a></li></ul></div></div> <a href="https://github.com/vuepress-reco/vuepress-reco.github.io" target="_blank" rel="noopener noreferrer" class="repo-link"><i class="iconfont reco-github"></i>
    GitHub
    <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav></div></header> <div class="sidebar-mask" data-v-1156296a></div> <aside class="sidebar" data-v-1156296a><div class="personal-info-wrapper" data-v-828910c6 data-v-1156296a><img src="/head.png" alt="author-avatar" class="personal-img" data-v-828910c6> <h3 class="name" data-v-828910c6>
    reco_luan
  </h3> <div class="num" data-v-828910c6><div data-v-828910c6><h3 data-v-828910c6>91</h3> <h6 data-v-828910c6>文章</h6></div> <div data-v-828910c6><h3 data-v-828910c6>4</h3> <h6 data-v-828910c6>标签</h6></div></div> <ul class="social-links" data-v-828910c6></ul> <hr data-v-828910c6></div> <nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-api"></i>
      文档
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><h4>主题</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/views/2.x/" class="nav-link"><i class="undefined"></i>
  2.x(alpha)
</a></li><li class="dropdown-subitem"><a href="/views/1.x/" class="nav-link"><i class="undefined"></i>
  1.x
</a></li><li class="dropdown-subitem"><a href="/views/0.x/" class="nav-link"><i class="undefined"></i>
  0.x
</a></li></ul></li><li class="dropdown-item"><h4>插件</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/views/plugins/index.html" class="nav-link"><i class="undefined"></i>
  官方插件
</a></li><li class="dropdown-subitem"><a href="/views/other/recommend.html" class="nav-link"><i class="undefined"></i>
  插件广场
</a></li></ul></li></ul></div></div><div class="nav-item"><a href="/views/other/question.html" class="nav-link"><i class="iconfont reco-faq"></i>
  常见问题
</a></div><div class="nav-item"><a href="/categories/blog/" class="nav-link"><i class="iconfont reco-blog"></i>
  博客
</a></div><div class="nav-item"><a href="/views/other/theme-example.html" class="nav-link"><i class="iconfont reco-category"></i>
  案例
</a></div><div class="nav-item"><a href="https://vuepress-theme-reco.recoluan.com/rss.xml" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-rss"></i>
  订阅
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="/views/other/messageBoard.html" class="nav-link"><i class="iconfont reco-suggestion"></i>
  留言板
</a></div><div class="nav-item"><a href="https://github.com/vuepress-reco/vuepress-theme-reco" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-github"></i>
  GitHub
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="undefined"></i>
      language
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/views/plugins/" aria-current="page" class="nav-link router-link-exact-active router-link-active"><i class="undefined"></i>
  简体中文
</a></li><li class="dropdown-item"><!----> <a href="/en/views/plugins/" class="nav-link"><i class="undefined"></i>
  English
</a></li></ul></div></div> <a href="https://github.com/vuepress-reco/vuepress-reco.github.io" target="_blank" rel="noopener noreferrer" class="repo-link"><i class="iconfont reco-github"></i>
    GitHub
    <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>插件</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/views/plugins/" aria-current="page" class="active sidebar-link">介绍</a></li><li><a href="/views/plugins/backToTop.html" class="sidebar-link">back-to-top</a></li><li><a href="/views/plugins/pagation.html" class="sidebar-link">Pagination</a></li><li><a href="/views/plugins/screenfull.html" class="sidebar-link">screenfull</a></li><li><a href="/views/plugins/loadingPage.html" class="sidebar-link">loading-page</a></li><li><a href="/views/plugins/kanbanniang.html" class="sidebar-link">kanbanniang</a></li><li><a href="/views/plugins/comments.html" class="sidebar-link">comments</a></li><li><a href="/views/plugins/extractCode.html" class="sidebar-link">extract-code</a></li><li><a href="/views/plugins/rss.html" class="sidebar-link">rss</a></li><li><a href="/views/plugins/bgmPlayer.html" class="sidebar-link">bgm player</a></li><li><a href="/views/plugins/bulletinPopover.html" class="sidebar-link">bulletin-popover</a></li></ul></section></li></ul> </aside> <div class="password-shadow password-wrapper-in" style="display:none;" data-v-4e82dffc data-v-1156296a><h3 class="title" data-v-4e82dffc data-v-4e82dffc>介绍</h3> <!----> <label id="box" class="inputBox" data-v-4e82dffc data-v-4e82dffc><input type="password" value="" data-v-4e82dffc> <span data-v-4e82dffc>Konck! Knock!</span> <button data-v-4e82dffc>OK</button></label> <div class="footer" data-v-4e82dffc data-v-4e82dffc><span data-v-4e82dffc><i class="iconfont reco-theme" data-v-4e82dffc></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-4e82dffc>vuePress-theme-reco</a></span> <span data-v-4e82dffc><i class="iconfont reco-copyright" data-v-4e82dffc></i> <a data-v-4e82dffc><span data-v-4e82dffc>reco_luan</span>
            
          <span data-v-4e82dffc>2017 - </span>
          2021
        </a></span></div></div> <div data-v-1156296a><main class="page" style="padding-right:0;"><section><div class="page-title"><h1 class="title">介绍</h1> <div data-v-1ff7123e><i class="iconfont reco-account" data-v-1ff7123e><span data-v-1ff7123e>reco_luan</span></i> <i class="iconfont reco-date" data-v-1ff7123e><span data-v-1ff7123e>2019/9/30</span></i> <i class="iconfont reco-eye" data-v-1ff7123e><span id="/views/plugins/" data-flag-title="Your Article Title" class="leancloud-visitors" data-v-1ff7123e><a class="leancloud-visitors-count" style="font-size:.9rem;font-weight:normal;color:#999;"></a></span></i> <!----></div></div> <div class="theme-reco-content content__default"><h2 id="插件是什么"><a href="#插件是什么" class="header-anchor">#</a> 插件是什么</h2> <p>VuePress 自 <code>1.0</code> 版本开始对插件进行了支持，这使得我们不仅可以应用一个喜欢的主题，而且可以自己去选择一些插件来丰富你的博客或者文档内容，搭建一个属于你自己的静态网站。</p> <p>主题也自 <code>vuepress-theme-reco@1.1.0</code> 版本开始进行插件化，将能够独立的功能或组件封装成插件，精简核心代码，方便维护和扩展。</p> <h2 id="插件的来源有哪些"><a href="#插件的来源有哪些" class="header-anchor">#</a> 插件的来源有哪些</h2> <h3 id="vuepress-reco-组织下的插件"><a href="#vuepress-reco-组织下的插件" class="header-anchor">#</a> vuepress-reco 组织下的插件</h3> <p>我们开发了一些能够帮助你丰富网站内容的小插件，你可以根据自己的喜好去启用它们。</p> <div class="custom-block tip"><p class="title"></p><p>我们的插件均发布在 <code>npm</code> 的组织 <code>vuepress-reco</code> 下，所以以下插件默认全称为 <code>@vuepress-reco/vuepress-plugin-&lt;name&gt;</code> （比如 <code>back-to-top</code> 的完整名称为 <code>@vuepress-reco/vuepress-plugin-back-to-top</code>） ，下面将简写组织内插件名称。</p></div><table><tr><th style="width:100px;">名称</th> <th style="width:60px;">版本</th> <th style="width:20px;">是否内置</th> <th style="width:20px;">是否主题独占</th> <th style="width:100px;">描述</th></tr> <tr><td><a href="backToTop.html">back-to-top</a></td> <td><a href="https://www.npmjs.com/package/@vuepress-reco/vuepress-plugin-back-to-top" title="@vuepress-reco/vuepress-plugin-back-to-top" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/npm/v/@vuepress-reco/vuepress-plugin-back-to-top.svg?style=flat-square" alt="npm" class="no-medium-zoom"></a></td> <td>✔</td> <td>✖</td> <td>返回顶部插件</td></tr> <tr><td><a href="pagation.html">pagation</a></td> <td><a href="https://www.npmjs.com/package/@vuepress-reco/vuepress-plugin-pagation" title="@vuepress-reco/vuepress-plugin-pagation" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/npm/v/@vuepress-reco/vuepress-plugin-pagation.svg?style=flat-square" alt="npm" class="no-medium-zoom"></a></td> <td>✔</td> <td>✖</td> <td>分页插件，帮助你快速跳转到任意页面</td></tr> <tr><td><a href="screenfull.html">screenfull</a></td> <td><a href="https://www.npmjs.com/package/@vuepress-reco/vuepress-plugin-screenfull" title="@vuepress-reco/vuepress-plugin-screenfull" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/npm/v/@vuepress-reco/vuepress-plugin-screenfull.svg?style=flat-square" alt="npm" class="no-medium-zoom"></a></td> <td>✖</td> <td>✖</td> <td>全屏按钮插件</td></tr> <tr><td><a href="loadingPage.html">loading-page</a></td> <td><a href="https://www.npmjs.com/package/@vuepress-reco/vuepress-plugin-loading-page" title="@vuepress-reco/vuepress-plugin-loading-page" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/npm/v/@vuepress-reco/vuepress-plugin-loading-page.svg?style=flat-square" alt="npm" class="no-medium-zoom"></a></td> <td>✔</td> <td>✖</td> <td>页面加载时过渡动画插件</td></tr> <tr><td><a href="kanbanniang.html">kan-ban-niang</a></td> <td><a href="https://www.npmjs.com/package/@vuepress-reco/vuepress-plugin-kan-ban-niang" title="@vuepress-reco/vuepress-plugin-kan-ban-niang" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/npm/v/@vuepress-reco/vuepress-plugin-kan-ban-niang.svg?style=flat-square" alt="npm" class="no-medium-zoom"></a></td> <td>✖</td> <td>✖</td> <td>看板娘插件，为你的网站添加一个萌萌哒看板娘~</td></tr> <tr><td><a href="comments.html">comments</a></td> <td><a href="https://www.npmjs.com/package/@vuepress-reco/vuepress-plugin-comments" title="@vuepress-reco/vuepress-plugin-comments" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/npm/v/@vuepress-reco/vuepress-plugin-comments.svg?style=flat-square" alt="npm" class="no-medium-zoom"></a></td> <td>✔</td> <td>✖</td> <td>评论插件，集成了 Valine 与 Vssue 两种评论系统</td></tr> <tr><td><a href="extractCode.html">extract-code</a></td> <td><a href="https://www.npmjs.com/package/@vuepress-reco/vuepress-plugin-extract-code" title="@vuepress-reco/vuepress-plugin-extract-code" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/npm/v/@vuepress-reco/vuepress-plugin-extract-code.svg?style=flat-square" alt="npm" class="no-medium-zoom"></a></td> <td>✖</td> <td>✖</td> <td>代码展示插件，可以方便地帮你展示多种代码组合</td></tr> <tr><td><a href="rss.html">rss</a></td> <td><a href="https://www.npmjs.com/package/@vuepress-reco/vuepress-plugin-rss" title="@vuepress-reco/vuepress-plugin-rss" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/npm/v/@vuepress-reco/vuepress-plugin-rss.svg?style=flat-square" alt="npm" class="no-medium-zoom"></a></td> <td>✖</td> <td>✔</td> <td>RSS 生成插件</td></tr> <tr><td><a href="bgmPlayer.html">bgm-player</a></td> <td><a href="https://www.npmjs.com/package/@vuepress-reco/vuepress-plugin-bgm-player" title="@vuepress-reco/vuepress-plugin-bgm-player" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/npm/v/@vuepress-reco/vuepress-plugin-bgm-player.svg?style=flat-square" alt="npm" class="no-medium-zoom"></a></td> <td>✖</td> <td>✖</td> <td>背景音乐播放器</td></tr></table> <div class="custom-block warning"><p class="title">注意</p><ul><li>只有<strong>内置插件</strong>是在安装主题时安装并配置好的，非内置插件（比如 kan-ban-niang 插件）需要你自行安装并配置。</li> <li>为了使得主题更加定制化，我们开发了一些本<strong>主题独占</strong>的插件（比如 rss 插件），由于和主题之间存在强耦合，所以这些插件<strong>在其他主题可能不会正常工作</strong>。</li></ul></div><h3 id="npm-中的-vuepress-插件生态"><a href="#npm-中的-vuepress-插件生态" class="header-anchor">#</a> npm 中的 VuePress 插件生态</h3> <p>如果你想额外添加一些自己喜欢的插件，你可以<a href="https://www.npmjs.com/search?q=vuepress-plugin" target="_blank" rel="noopener noreferrer">在 npm 中搜索 <code>vuepress-plugin</code><span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a> 前缀来查看当前 VuePress 社区中已经开发的插件，之后使用 npm 或者 yarn <a href="#%E6%8F%92%E4%BB%B6%E7%9A%84%E4%B8%8B%E8%BD%BD">下载</a>并在 <code>.vuepress/config.js</code> 中<a href="#%E7%AE%80%E5%8D%95%E4%BD%BF%E7%94%A8%E6%8F%92%E4%BB%B6">配置</a>以启用它们。</p> <h3 id="主题内置插件"><a href="#主题内置插件" class="header-anchor">#</a> 主题内置插件</h3> <p>主题内置了一些适合于博客以及文档开箱即用的插件，方便你更快地搭建起一个简洁而又不失优雅的静态网站。</p> <p>这些内置的插件已经按照主题风格进行配置，你不需要去手动去启用它们，但如果你不喜欢我们内置的配置，完全可以<a href="#%E4%B8%BA%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE%E9%80%89%E9%A1%B9">修改插件配置</a>甚至禁用插件。</p> <table><thead><tr><th style="text-align:center;">名称</th> <th style="text-align:center;">是否必需</th> <th style="text-align:center;">默认配置</th> <th style="text-align:left;">描述</th></tr></thead> <tbody><tr><td style="text-align:center;"><a href="/views/plugins/backToTop.html">back-to-top</a></td> <td style="text-align:center;">✖</td> <td style="text-align:center;">-</td> <td style="text-align:left;">...</td></tr> <tr><td style="text-align:center;"><a href="/views/plugins/comments.html">comments</a></td> <td style="text-align:center;">✔</td> <td style="text-align:center;">需主题配置内配置 <code>$themeConfig.vssueConfig</code> 或者 <code>$themeConfig.valineConfig</code></td> <td style="text-align:left;">...</td></tr> <tr><td style="text-align:center;"><a href="/views/plugins/loadingPage.html">loading-page</a></td> <td style="text-align:center;">✔</td> <td style="text-align:center;">作为组件，无需配置</td> <td style="text-align:left;">...</td></tr> <tr><td style="text-align:center;"><a href="/views/plugins/pagation.html">pagation</a></td> <td style="text-align:center;">✔</td> <td style="text-align:center;">作为组件，无需配置</td> <td style="text-align:left;">...</td></tr> <tr><td style="text-align:center;"><a href="/views/plugins/screenfull.html">screenfull</a></td> <td style="text-align:center;">✖</td> <td style="text-align:center;">作为组件，无需配置</td> <td style="text-align:left;">...</td></tr> <tr><td style="text-align:center;"><a href="/views/plugins/extractCode.html">extractCode</a></td> <td style="text-align:center;">✖</td> <td style="text-align:center;">-</td> <td style="text-align:left;">...</td></tr> <tr><td style="text-align:center;"><a href="https://v1.vuepress.vuejs.org/zh/plugin/official/plugin-active-header-links.html" target="_blank" rel="noopener noreferrer">@vuepress/plugin-active-header-links<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></td> <td style="text-align:center;">✖</td> <td style="text-align:center;">-</td> <td style="text-align:left;">页面滚动时自动激活侧边栏链接插件</td></tr> <tr><td style="text-align:center;"><a href="https://v1.vuepress.vuejs.org/zh/plugin/official/plugin-medium-zoom.html" target="_blank" rel="noopener noreferrer">@vuepress/plugin-medium-zoom<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></td> <td style="text-align:center;">✖</td> <td style="text-align:center;"><code>{selector: '.theme-reco-content :not(a) &gt; img'}</code></td> <td style="text-align:left;">图片缩放插件</td></tr> <tr><td style="text-align:center;"><a href="https://v1.vuepress.vuejs.org/zh/plugin/official/plugin-nprogress.html" target="_blank" rel="noopener noreferrer">@vuepress/plugin-nprogress<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></td> <td style="text-align:center;">✖</td> <td style="text-align:center;">-</td> <td style="text-align:left;">一个基于 nprogress 的进度条插件</td></tr> <tr><td style="text-align:center;"><a href="https://v1.vuepress.vuejs.org/zh/plugin/official/plugin-search.html" target="_blank" rel="noopener noreferrer">@vuepress/plugin-search<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></td> <td style="text-align:center;">✔</td> <td style="text-align:center;">-</td> <td style="text-align:left;">基于 Headers 的搜索插件</td></tr> <tr><td style="text-align:center;"><a href="https://vuepress-plugin-blog.ulivz.com/" target="_blank" rel="noopener noreferrer">@vuepress/plugin-blog<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></td> <td style="text-align:center;">✖</td> <td style="text-align:center;">本插件是博客系统的基础，请不要禁用或者覆盖配置</td> <td style="text-align:left;">博客插件</td></tr> <tr><td style="text-align:center;"><a href="https://vuepress.github.io/zh/plugins/container/" target="_blank" rel="noopener noreferrer">vuepress-plugin-container<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></td> <td style="text-align:center;">✖</td> <td style="text-align:center;">使用默认主题的配置，效果见<a href="/views/1.x/syntax.html#container">在 Markdown 中使用容器</a></td> <td style="text-align:left;">在你的文档中注册新的 Markdown 容器，可同时注册多个容器</td></tr></tbody></table> <div class="custom-block tip"><p class="title">什么是必需插件</p><p>因为主题正处于插件化的进程中，与大部分插件尚存在一些耦合，如果你通过手动禁用这些插件可能会引发某些莫名其妙的错误，所以<strong>请尽量不要禁用标有必需标志的插件</strong>，如果你有这样的需求，欢迎在评论中留言</p></div><h2 id="插件怎么用"><a href="#插件怎么用" class="header-anchor">#</a> 插件怎么用</h2> <blockquote><p><a href="https://vuepress.vuejs.org/zh/plugin/using-a-plugin.html" target="_blank" rel="noopener noreferrer">关于插件的使用的详细文档<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p></blockquote> <h3 id="插件的下载"><a href="#插件的下载" class="header-anchor">#</a> 插件的下载</h3> <p>如果你有一个已经发布在 <code>npm</code> 的喜欢的插件，你可以使用以下命令来下载并安装它</p> <div class="language-bash extra-class"><pre class="language-bash"><code><span class="token function">yarn</span> <span class="token function">add</span> <span class="token operator">&lt;</span>pagkageName<span class="token operator">&gt;</span> -D
<span class="token comment"># or</span>
<span class="token function">npm</span> i <span class="token operator">&lt;</span>packageName<span class="token operator">&gt;</span> -D
</code></pre></div><div class="custom-block warning"><p class="title">注意</p><p>这里的包名需要全称，并不能省略 <code>vuepress-plugin-</code></p></div><h3 id="简单使用插件"><a href="#简单使用插件" class="header-anchor">#</a> 简单使用插件</h3> <p>在下载插件后，你可以通过在 <code>.vuepress/config.js</code> 中做一些配置来使用插件</p> <div class="language-javascript extra-class"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
  plugins<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&quot;vuepress-plugin-xxx&quot;</span><span class="token punctuation">]</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>
</code></pre></div><p>你甚至可以省略掉 <code>vuepress-plugin-</code></p> <div class="language-javascript extra-class"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
  plugins<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&quot;xxx&quot;</span><span class="token punctuation">]</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>
</code></pre></div><h3 id="为插件配置选项"><a href="#为插件配置选项" class="header-anchor">#</a> 为插件配置选项</h3> <p>如果你选择的插件支持 Options ，那么你可以通过以下两种方式添加</p> <h4 id="_1-babel-式"><a href="#_1-babel-式" class="header-anchor">#</a> 1. Babel 式</h4> <div class="language-javascript extra-class"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
  plugins<span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token punctuation">[</span>
      <span class="token string">&quot;vuepress-plugin-xxx&quot;</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        <span class="token comment">/* options */</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span>
  <span class="token punctuation">]</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>
</code></pre></div><p>就像这样</p> <div class="language-javascript extra-class"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
  plugins<span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token punctuation">[</span>
      <span class="token string">&quot;@vuepress-reco/vuepress-plugin-kan-ban-niang&quot;</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        theme<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&quot;miku&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
        clean<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
        modelStyle<span class="token operator">:</span> <span class="token punctuation">{</span>
          position<span class="token operator">:</span> <span class="token string">&quot;fixed&quot;</span><span class="token punctuation">,</span>
          left<span class="token operator">:</span> <span class="token string">&quot;0px&quot;</span><span class="token punctuation">,</span>
          bottom<span class="token operator">:</span> <span class="token string">&quot;0px&quot;</span><span class="token punctuation">,</span>
          opacity<span class="token operator">:</span> <span class="token string">&quot;0.9&quot;</span><span class="token punctuation">,</span>
          zIndex<span class="token operator">:</span> <span class="token number">99999</span>
        <span class="token punctuation">}</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span>
  <span class="token punctuation">]</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>
</code></pre></div><h4 id="_2-对象式"><a href="#_2-对象式" class="header-anchor">#</a> 2. 对象式</h4> <div class="language-javascript extra-class"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
  plugins<span class="token operator">:</span> <span class="token punctuation">{</span>
    xxx<span class="token operator">:</span> <span class="token punctuation">{</span>
      <span class="token comment">/* options */</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>
</code></pre></div><div class="custom-block tip"><p class="title"></p><p>你可以通过这种方式来对主题内置插件的配置进行覆盖，甚至禁用一个内置插件</p> <p>只需将 Options 设置成 <code>false</code> 便可禁用该插件</p> <p>就像这样</p> <div class="language-javascript extra-class"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
  plugins<span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token punctuation">[</span><span class="token string">&quot;@vuepress-reco/back-to-top&quot;</span><span class="token punctuation">,</span> <span class="token boolean">false</span><span class="token punctuation">]</span> <span class="token comment">// disabled.</span>
  <span class="token punctuation">]</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>
</code></pre></div></div></div></section> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/vuepress-reco/vuepress-reco.github.io/edit/gh-pages-source/docs/views/plugins/README.md" target="_blank" rel="noopener noreferrer">在 GitHub 上编辑此页</a> <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></div> <div class="last-updated"><span class="prefix">Last Updated: </span> <span class="time">2020/7/11 下午7:13:51</span></div></footer> <div class="page-nav"><p class="inner"><!----> <span class="next"><a href="/views/plugins/backToTop.html">
            back-to-top
          </a></span></p></div> <div class="comments-wrapper" style="display:none;"><!----></div> <ul class="side-bar sub-sidebar-wrapper" style="width:0;" data-v-70334359></ul></main> <!----></div></div></div></div><div class="global-ui"><div class="back-to-ceiling" style="right:1rem;bottom:6rem;width:2.5rem;height:2.5rem;border-radius:.25rem;line-height:2.5rem;display:none;" data-v-c6073ba8 data-v-c6073ba8><svg t="1574745035067" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5404" class="icon" data-v-c6073ba8><path d="M526.60727968 10.90185116a27.675 27.675 0 0 0-29.21455937 0c-131.36607665 82.28402758-218.69155461 228.01873535-218.69155402 394.07834331a462.20625001 462.20625001 0 0 0 5.36959153 69.94390903c1.00431239 6.55289093-0.34802892 13.13561351-3.76865779 18.80351572-32.63518765 54.11355614-51.75690182 118.55860487-51.7569018 187.94566865a371.06718723 371.06718723 0 0 0 11.50484808 91.98906777c6.53300375 25.50556257 41.68394495 28.14064038 52.69160883 4.22606766 17.37162448-37.73630017 42.14135425-72.50938081 72.80769204-103.21549295 2.18761121 3.04276886 4.15646224 6.24463696 6.40373557 9.22774369a1871.4375 1871.4375 0 0 0 140.04691725 5.34970492 1866.36093723 1866.36093723 0 0 0 140.04691723-5.34970492c2.24727335-2.98310674 4.21612437-6.18497483 6.3937923-9.2178004 30.66633723 30.70611158 55.4360664 65.4791928 72.80769147 103.21549355 11.00766384 23.91457269 46.15860503 21.27949489 52.69160879-4.22606768a371.15156223 371.15156223 0 0 0 11.514792-91.99901164c0-69.36717486-19.13165746-133.82216804-51.75690182-187.92578088-3.42062944-5.66790279-4.76302748-12.26056868-3.76865837-18.80351632a462.20625001 462.20625001 0 0 0 5.36959269-69.943909c-0.00994388-166.08943902-87.32547796-311.81420293-218.6915546-394.09823051zM605.93803103 357.87693858a93.93749974 93.93749974 0 1 1-187.89594924 6.1e-7 93.93749974 93.93749974 0 0 1 187.89594924-6.1e-7z" p-id="5405" data-v-c6073ba8></path><path d="M429.50777625 765.63860547C429.50777625 803.39355007 466.44236686 1000.39046097 512.00932183 1000.39046097c45.56695499 0 82.4922232-197.00623328 82.5015456-234.7518555 0-37.75494459-36.9345906-68.35043303-82.4922232-68.34111062-45.57627738-0.00932239-82.52019037 30.59548842-82.51086798 68.34111062z" p-id="5406" data-v-c6073ba8></path></svg></div><!----><!----></div></div>
    <script src="/assets/js/app.ee497890.js" defer></script><script src="/assets/js/6.2c23b45d.js" defer></script><script src="/assets/js/1.0b8c7b71.js" defer></script><script src="/assets/js/110.753d21b3.js" defer></script><script src="/assets/js/40.13ddb158.js" defer></script><script src="/assets/js/20.1ca19584.js" defer></script>
  </body>
</html>
